package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @ClassName: AppealCondition
 * @Description:
 * @author: GongDaCheng
 * @Date: 11:08 2021/8/25
 */
@Data
@ApiModel(value = "AppealCondition",description = "诉求查询条件对象")
public class AppealCondition implements Serializable {

    private static final long serialVersionUID = 3852946918114539814L;

    @ApiModelProperty(value = "诉求人id（企业用户id）",required = false)
    private Long appealPersonId;

    @ApiModelProperty(value = "诉求编码",required = false)
    private String appealCode;

    @ApiModelProperty(value = "诉求标题",required = false)
    private String appealTitle;

    @ApiModelProperty(value = "办理部门",required = false)
    private Long handleOrg;

    @ApiModelProperty(value = "办理状态（后台四种）",required = false)
    private String handleState;

    @ApiModelProperty(value = "是否公开",required = false)
    private String isPublic;

    @ApiModelProperty(value = "开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @ApiModelProperty(value = "结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "诉求类型",required = false)
    private String appealType;

    @ApiModelProperty(value = "当前用户所属部门",required = false)
    private Long currentUserOrg;

    @ApiModelProperty(value = "page",required = true)
    private int page;

    @ApiModelProperty(value = "size",required = true)
    private int size;
}
